<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑教师 - ${bean.name }</title>
<c:import url="/WEB-INF/jsp/head.jsp" />
<script type="text/javascript" src="static/js/teacher/add.js"></script>
</head>
<body>
	<div class="default-theme container-fluid iframe">
		<div class="col-md-8">
			<form class="form-horizontal" action="teacher/edit" method="post">
				<div class="form-group">
					<label for="account" class="col-sm-2 control-label"><i
						class="text-danger">*</i> 账号名称</label>
					<div class="col-sm-10">
						<input type="hidden" name="id" value="${bean.id }"> <input
							type="text" class="form-control" placeholder="账号名称"
							readonly="readonly" value="${bean.account }">
					</div>
				</div>
				<div class="form-group">
					<label for="teacherName" class="col-sm-2 control-label"><i
						class="text-danger">*</i> 教师名称</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="name"
							placeholder="教师名称" value="${bean.name }">
					</div>
				</div>
				<div class="form-group">
					<label for="tel" class="col-sm-2 control-label"><i
						class="text-danger">*</i> 教师类型</label>
					<div class="col-sm-10">
						<select class="form-control" name="type.value">
							<c:forEach items="${types }" var="type">
								<option value="${type.value }"
									<c:if test="${type.value == bean.type.value }">selected="selected"</c:if>>${type.name }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label for="tel" class="col-sm-2 control-label">联系电话</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="tel"
							placeholder="联系电话" value="${bean.tel }">
					</div>
				</div>
				<div class="form-group">
					<label for="email" class="col-sm-2 control-label">电子邮箱</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="email"
							placeholder="电子邮箱" value="${bean.email }">
					</div>
				</div>
				<div class="form-group">
					<label for="remarks" class="col-sm-2 control-label">备注</label>
					<div class="col-sm-10">
						<textarea class="form-control" name="remarks" placeholder="备注">${bean.remarks }</textarea>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						<button type="submit" class="btn btn-primary">修改</button>
						<!-- <a href="javascript:history.back();" class="btn btn-default">返回</a> -->
					</div>
				</div>
				<!-- 分页信息 -->
				<input type="hidden" name="teacherName" value="${teacherName }" />
				<input type="hidden" name="typeValue" value="${typeValue }" /> <input
					type="hidden" name="pageNum" value="${pageNum }" /> <input
					type="hidden" name="pageSize" value="${pageSize }" />
			</form>
		</div>
	</div>
</body>
</html>